home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 2.6 KB | 95 lines | [TEXT/CWIE] |
- // CModalCheckboxes.h -- dialog class
-
- #pragma once
-
- #include <LGADialog.h>
-
- #include "DModalCheckboxesData.h"
-
- class LStream;
-
- class LPushButton;
- class LCheckBox;
- class LDisclosureTriangle;
- class LStaticText;
- class LTextGroupBox;
- class CCheckBox;
- class LToggleButton;
- class LBevelButton;
-
-
- //----------
- class CModalCheckboxes : public LGADialog {
- public: // these comprise the programming interface for using the dialog
- static CModalCheckboxes* CreateModalCheckboxes (LCommander* inSuperCommander,
- CommandT inCommand,
- DModalCheckboxesData* inData);
- virtual void SetFromData (DModalCheckboxesData* inData);
- virtual DModalCheckboxesData* GetData ();
-
- // these functions will be obsoleted
- // retained only for backwards compatibility
- virtual Boolean GetStandardChoice();
- virtual void SetStandardChoice (Boolean inChoice);
- virtual Boolean GetXxChoice();
- virtual void SetXxChoice (Boolean inChoice);
- virtual Boolean GetLRChoice();
- virtual void SetLRChoice (Boolean inChoice);
- virtual Boolean GetLR2Choice();
- virtual void SetLR2Choice (Boolean inChoice);
- virtual Boolean GetLR3Choice();
- virtual void SetLR3Choice (Boolean inChoice);
- virtual Boolean GetLR4Choice();
- virtual void SetLR4Choice (Boolean inChoice);
- virtual Boolean GetCheckboxChoice();
- virtual void SetCheckboxChoice (Boolean inChoice);
- virtual Boolean GetCheckbox2Choice();
- virtual void SetCheckbox2Choice (Boolean inChoice);
- virtual Boolean GetNextChoice();
- virtual void SetNextChoice (Boolean inChoice);
- virtual Boolean GetNext2Choice();
- virtual void SetNext2Choice (Boolean inChoice);
-
-
- public: // these comprise the implementation
- enum { class_ID = 'Mod2' };
-
- CModalCheckboxes (LStream* inStream);
- virtual ~CModalCheckboxes();
-
- virtual void ListenToMessage (MessageT inMessage,
- void *ioParam);
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
-
- protected:
- static void RegisterClass();
- virtual void FinishCreateSelf();
- virtual void DataChanged (long inDataID);
-
- protected:
- static Boolean sIsRegistered;
- CommandT mCommand;
-
- LPushButton* mOKButton;
- LCheckBox* mStandardCheck;
- LDisclosureTriangle* mXxCheck;
- CCheckBox* mLRCheck;
- CCheckBox* mLR2Check;
- LToggleButton* mLR3Check;
- LToggleButton* mLR4Check;
- CCheckBox* mCheckboxCheck;
- LBevelButton* mCheckbox2Check;
- LBevelButton* mNextCheck;
- LBevelButton* mNext2Check;
-
- DModalCheckboxesData* mData;
-
- };
-